// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 44;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The valley opens up into a high plain, a broad stretch of wind-swept scrubland high up in the mountains of the Rokaj. The wind is bitter cold, and you can see wide patches of snow higher up. The trees are hardy evergreens, and edible plants and game are few and far between.";
	text2 = "You have entered the High Litha, one of the Ro's four provinces. It is large in land but low in population, a cold and austere land for a cold and austere people. This will not be a comfortable visit.";
	text3 = "Your orders were clear. Contact and judge their governor. Find their Raasa and hear his petition. It's sort of hard to concentrate on all that. Right now, you just want a place to get warm.";
	code =
		sf(100 + this_sec,1,1);
		if (gf(80,12) == 0)
			sf(80,12,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "You find a large stone momument, about thirty feet high, out here in this remote, peaceful location. There is a crude carving of a Ro warrior at the top of the pillar.";
	text2 = "For hundreds of years, travelers have been chipping names in the stone at the base. Names have been laid over other names, again and again, leaving a thick, incomprehensible mess.";
	text3 = "A few bowls and dried flowers are at the base of the pillar. Probably a monument or memorial of some sort.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "These buildings are the homes of two Lithan clans, who work the Oravera Claim. It is a new quicksilver mine in the base of the mountain to the east.";
	text2 = "None of them are working right now. Apparently, there are lots of ghosts in there, and they are wisely refusing to enter.";
	text3 = "Only a few of them are in residence right now. The rest are at work in the mines. Now that you have cleared out the ghosts, they can make a living again.";
	code =
		sf(100 + this_sec,3,1);
		if (gf(44,11) == 0)
			rs(3);
			else rs(2);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "The old Lithans lie dead in front of you. They have no treasure, no signs of what clan they came from. Their armor and weapons are beneath your notice.";
	text2 = "Who were these old men? Why did they throw away their lives so easily? What is this place?";

begintalknode;
	tag = 14;
	condition = gf(144,14) == 0;
	text1 = "Several armed Lithans are patrolling the road here. They don't want to talk, but they stand politely off to the side to let you pass.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "A flurry of snow blows up the road toward you. It's an odd little cloud. It's dense, fast, and travels along the path. The icy wind blasts you, and you raise your cloak to protect your face.";
	text2 = "When the wind calms down, you lower your cloak. You find that the snow has coalesced into several shades. You try to talk to them, but they respond with incoherent howls.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "Your blows have broken apart the shades, turning them back into harmless stone. Odd. The High Litha is the land of ghosts and memories. The people here talk to ghosts, for advice and judgment.";
	text2 = "You haven't heard anything about ghosts just jumping out and murdering people. Maybe the ghosts just really hate Havenites.";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a large encampment and guardpost at the entrance to the High Litha. There aren't a lot of guards, though. Makes sense. There isn't much up here to raid.";
	text2 = "The Lithans here welcome you and motion for you to sit. You are provided with tea and coarse bread. They are a quiet and reserved folk. They don't talk a lot. There is no gossip or news of the road.";
	text3 = "Happily, they are willing to answer questions. They're here to guide and protect travelers, after all.";
	text4 = "You return to the guardpost and sit with the guards again. They are no more friendly than they were before. Then again, this cold reserve might be the way High Lithans show affection.";
	text5 = "Hopefully, you won't be up here long enough to find out.";
	code =
		if (gf(145,11) == 0) {
			sf(145,11,1);
			rs(4);
			rs(5);
			}
			else {
				rs(2);
				rs(3);
				}
	break;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Tell me about the High Litha._";
	text1 = "One of the Lithans speaks for them all. He shows no insignia or other signs of rank. _We are a poor and simple people, scraping by in the high mountains. We wish to be left alone, but we accept our fate._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Any threats on the road?_";
	text1 = "_Things are more peaceful up here in the mountains. The lower folk respect us and leave us be. We are the true keepers of the Deep Truth of the Rokaj._";

begintalknode;
	state = 11;
	nextstate = 10;
	condition = 1;
	question = "_I'd like to know more about that._";
	text1 = "_We are not wise. We are only road guards. You come to see our Raasa, [P]? Raasa Suharum is wise enough to speak for us._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Where is the nearest city?_";
	text1 = "_The city of Jajayim is to the north. That is where our Raasa's seat is. Also, the hall of your governor._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Does Haven have a fort near here?_";
	text1 = "_[F5] is to the west._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_That is all I need._";
	text1 = "The Lithans quietly nod, satisfied that they have been useful. With regrets, you leave their fire and face the icy wind.";
	action = END_TALK;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "The road near the river is a muddy mess. Only the old stones of the Pilgrimage Road make the journey tolerable. Unfortunately, the road is blocked here.";
	text2 = "A handful of Lithan warriors stand in the road, blocking your path. They are old soldiers, well past their prime. Their blades are not yet drawn. They scowl at you, uninterested in conversation.";
	text3 = "When you try to move past them, they shift to block your path.";
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_What are you doing?_";
	text1 = "One of them growls, _This is Lithan land. Pure land. You are an outsider. A tormentor. You enter with humility. You don't walk on the Pilgrimage Road. It is for us._";
	text2 = "You are being tested. Your mother would be infuriated to see such insolence from a vassal.";

begintalknode;
	state = 40;
	nextstate = 43;
	condition = 1;
	question = "Step off the road and walk in the mud.";
	text1 = "When you leave the road and step into the mud, you instantly sink. Six inches of sticky goop hold you in place. The High Lithans on the road point at you and laugh.";

begintalknode;
	state = 40;
	nextstate = 41;
	condition = 1;
	question = "_Get out of my way._";
	text1 = "_No. You defile the Pilgrimage Road. You step off of it._ He helpfully points to the deep mud on either side.";
	text2 = "You look behind you, wondering if another exit is available. Two of the old Lithans, moving with admirable swiftness, dance past you and block your retreat.";

begintalknode;
	state = 41;
	nextstate = -1;
	condition = 1;
	question = "_I received permission to walk on this road from Raasa Elha of Laskara._";
	text1 = "He snorts. _The Gentle Coast? Weaklings and cowards. This is what I say to them._ He spits in the mud.";

begintalknode;
	state = 41;
	nextstate = 43;
	condition = 1;
	question = "Step off the road and walk in the mud.";
	text1 = "When you leave the road and step into the mud, you instantly sink. Six inches of sticky goop hold you in place. The High Lithans on the road point at you and laugh.";


begintalknode;
	state = 41;
	nextstate = 42;
	condition = 1;
	question = "_I am a [P] of Haven. I don't walk in the mud._";
	text1 = "The High Lithans draw their weapons. _We speak for the Deep Truth when nobody else will. It is our purpose. We must make a stand now. The Pilgrimage Road is sacred. It is the path to the heart. Get off it._";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_Why are you doing this? It is madness._";
	text1 = "_Haven will never understand the Rokaj. Never, ever. You can only pretend we welcome you. You pretend you help us. You will never belong here._";

begintalknode;
	state = 42;
	nextstate = 43;
	condition = 1;
	question = "Step off the road and walk in the mud.";
	text1 = "When you leave the road and step into the mud, you instantly sink. Six inches of sticky goop hold you in place. The High Lithans on the road point at you and laugh.";

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_You dare to draw a weapon on a [P] of Haven? This insult cannot be tolerated._ Kill them.";
	text1 = "The old Lithans look at each other. They nod. Then they charge. These mad, old warriors are happy to fight you.";
	action = END_TALK;
	code =
		violence(3);
		ro_faction(3);
		queen_faction(2);
	break;

begintalknode;
	state = 42;
	nextstate = -1;
	condition = 1;
	question = "_You are forcing me to defend myself. You can't defeat me._ Draw a weapon.";
	text1 = "The old Lithans look at each other. There is a long, tense moment. You look them in the eye, brave and resolute. They look at each other. Then they nod.";
	text2 = "At first, you think that this is it. The test has been passed.";
	text3 = "Then they attack you.";
	action = END_TALK;
	code =
		violence(1);
		ro_faction(3);
		queen_faction(2);
	break;

begintalknode;
	state = 43;
	nextstate = -1;
	condition = 1;
	question = "Get out of the mud.";
	text1 = "They back off and watch from a distance as you pull yourself out of the mess. As you regain solid ground, they turn and leave, laughing as they go.";
	text3 = "You suspect that the story of this encounter will spread.";
	action = END_TALK;
	code =
		violence(-3);
		ro_faction(-3);
		queen_faction(-2);
		cancel_out_fight(0,1);
	break;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				